xilinx: zynqmp: Move zynqmp_ipi.h to include directory
authorJolly Shah <[email protected]>
Tue, 8 Jan 2019 19:21:29 +0000 (11:21 -0800)
committerJolly Shah <[email protected]>
Wed, 9 Jan 2019 20:07:06 +0000 (12:07 -0800)
Move zynqmp_ipi.h to platform specific include directory.
Rename it to plat_ipi.h instead of platform name. So, it can
be used to common source files which needs platform specific
data.

Signed-off-by: Tejas Patel <[email protected]>
Reviewed-by: Siva Durga Prasad Paladugu <[email protected]>
Signed-off-by: Jolly Shah <[email protected]>
plat/xilinx/zynqmp/include/plat_ipi.h [new file with mode: 0644]
plat/xilinx/zynqmp/ipi_mailbox_service/ipi_mailbox_svc.c
plat/xilinx/zynqmp/pm_service/pm_ipi.c
plat/xilinx/zynqmp/sip_svc_setup.c
plat/xilinx/zynqmp/zynqmp_ipi.c
plat/xilinx/zynqmp/zynqmp_ipi.h [deleted file]

diff --git a/plat/xilinx/zynqmp/include/plat_ipi.h b/plat/xilinx/zynqmp/include/plat_ipi.h
new file mode 100644 (file)
index 0000000..6d036af
--- /dev/null
@@ -0,0 +1,70 @@
+/*
+ * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/* ZynqMP IPI management enums and defines */
+
+#ifndef PLAT_IPI_H
+#define PLAT_IPI_H
+
+#include <stdint.h>
+
+/*********************************************************************
+ * IPI agent IDs macros
+ ********************************************************************/
+#define IPI_ID_APU     0U
+#define IPI_ID_RPU0    1U
+#define IPI_ID_RPU1    2U
+#define IPI_ID_PMU0    3U
+#define IPI_ID_PMU1    4U
+#define IPI_ID_PMU2    5U
+#define IPI_ID_PMU3    6U
+#define IPI_ID_PL0     7U
+#define IPI_ID_PL1     8U
+#define IPI_ID_PL2     9U
+#define IPI_ID_PL3     10U
+
+/*********************************************************************
+ * IPI mailbox status macros
+ ********************************************************************/
+#define IPI_MB_STATUS_IDLE             0
+#define IPI_MB_STATUS_SEND_PENDING     1
+#define IPI_MB_STATUS_RECV_PENDING     2
+
+/*********************************************************************
+ * IPI mailbox call is secure or not macros
+ ********************************************************************/
+#define IPI_MB_CALL_NOTSECURE  0
+#define IPI_MB_CALL_SECURE     1
+
+/*********************************************************************
+ * IPI APIs declarations
+ ********************************************************************/
+
+/* Validate IPI mailbox access */
+int ipi_mb_validate(uint32_t local, uint32_t remote, unsigned int is_secure);
+
+/* Open the IPI mailbox */
+void ipi_mb_open(uint32_t local, uint32_t remote);
+
+/* Release the IPI mailbox */
+void ipi_mb_release(uint32_t local, uint32_t remote);
+
+/* Enquire IPI mailbox status */
+int ipi_mb_enquire_status(uint32_t local, uint32_t remote);
+
+/* Trigger notification on the IPI mailbox */
+void ipi_mb_notify(uint32_t local, uint32_t remote, uint32_t is_blocking);
+
+/* Ack IPI mailbox notification */
+void ipi_mb_ack(uint32_t local, uint32_t remote);
+
+/* Disable IPI mailbox notification interrupt */
+void ipi_mb_disable_irq(uint32_t local, uint32_t remote);
+
+/* Enable IPI mailbox notification interrupt */
+void ipi_mb_enable_irq(uint32_t local, uint32_t remote);
+
+#endif /* PLAT_IPI_H */
index 3aa0b75d5dc3e5568ea0ec1527b6ad4c32058751..932d1e748456a54ac85bc6491341427e73382492 100644 (file)
 #include <common/runtime_svc.h>
 #include <lib/bakery_lock.h>
 #include <lib/mmio.h>
+#include <plat_ipi.h>
 #include <plat_private.h>
 
 #include "ipi_mailbox_svc.h"
-#include "../zynqmp_ipi.h"
 #include "../../../services/spd/trusty/smcall.h"
 
 /*********************************************************************
index 66393ef30174067bb6ce14f0a09f4d7ac636594c..88e23f093197b04797d05423b48b232874117609 100644 (file)
@@ -7,10 +7,10 @@
 #include <arch_helpers.h>
 #include <lib/bakery_lock.h>
 #include <lib/mmio.h>
+#include <plat_ipi.h>
 #include <plat_private.h>
 #include <plat/common/platform.h>
 
-#include "../zynqmp_ipi.h"
 #include "pm_ipi.h"
 
 /* IPI message buffers */
index 8d23a014c553f4800035d95013e0da44e6851d4d..5b8767988944786cb119481fd1b7ba19c73c9f72 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -9,9 +9,9 @@
 #include <common/runtime_svc.h>
 #include <tools_share/uuid.h>
 
+#include <plat_ipi.h>
 #include "ipi_mailbox_svc.h"
 #include "pm_svc_main.h"
-#include "zynqmp_ipi.h"
 
 /* SMC function IDs for SiP Service queries */
 #define ZYNQMP_SIP_SVC_CALL_COUNT      0x8200ff00
index 2830ea3a33550f38f86623f37bc3ee42496db686..96f2b9c3b18741410ca734b1dfa1d0f2de3e7468 100644 (file)
 #include <common/runtime_svc.h>
 #include <lib/bakery_lock.h>
 #include <lib/mmio.h>
+#include <plat_ipi.h>
 #include <plat_private.h>
 
-#include "zynqmp_ipi.h"
-
 /*********************************************************************
  * Macros definitions
  ********************************************************************/
diff --git a/plat/xilinx/zynqmp/zynqmp_ipi.h b/plat/xilinx/zynqmp/zynqmp_ipi.h
deleted file mode 100644 (file)
index b9b40dd..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-/* ZynqMP IPI management enums and defines */
-
-#ifndef ZYNQMP_IPI_H
-#define ZYNQMP_IPI_H
-
-#include <stdint.h>
-
-/*********************************************************************
- * IPI agent IDs macros
- ********************************************************************/
-#define IPI_ID_APU     0U
-#define IPI_ID_RPU0    1U
-#define IPI_ID_RPU1    2U
-#define IPI_ID_PMU0    3U
-#define IPI_ID_PMU1    4U
-#define IPI_ID_PMU2    5U
-#define IPI_ID_PMU3    6U
-#define IPI_ID_PL0     7U
-#define IPI_ID_PL1     8U
-#define IPI_ID_PL2     9U
-#define IPI_ID_PL3     10U
-
-/*********************************************************************
- * IPI mailbox status macros
- ********************************************************************/
-#define IPI_MB_STATUS_IDLE             0
-#define IPI_MB_STATUS_SEND_PENDING     1
-#define IPI_MB_STATUS_RECV_PENDING     2
-
-/*********************************************************************
- * IPI mailbox call is secure or not macros
- ********************************************************************/
-#define IPI_MB_CALL_NOTSECURE  0
-#define IPI_MB_CALL_SECURE     1
-
-/*********************************************************************
- * IPI APIs declarations
- ********************************************************************/
-
-/* Validate IPI mailbox access */
-int ipi_mb_validate(uint32_t local, uint32_t remote, unsigned int is_secure);
-
-/* Open the IPI mailbox */
-void ipi_mb_open(uint32_t local, uint32_t remote);
-
-/* Release the IPI mailbox */
-void ipi_mb_release(uint32_t local, uint32_t remote);
-
-/* Enquire IPI mailbox status */
-int ipi_mb_enquire_status(uint32_t local, uint32_t remote);
-
-/* Trigger notification on the IPI mailbox */
-void ipi_mb_notify(uint32_t local, uint32_t remote, uint32_t is_blocking);
-
-/* Ack IPI mailbox notification */
-void ipi_mb_ack(uint32_t local, uint32_t remote);
-
-/* Disable IPI mailbox notification interrupt */
-void ipi_mb_disable_irq(uint32_t local, uint32_t remote);
-
-/* Enable IPI mailbox notification interrupt */
-void ipi_mb_enable_irq(uint32_t local, uint32_t remote);
-
-#endif /* ZYNQMP_IPI_H */